From: Jo-Philipp Wich Date: Wed, 26 Oct 2022 13:30:11 +0000 (+0200) Subject: luci-lua-runtime: fix loading header/footer templates for SimpleForms X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=81f204d38f089ce6114bd67659c72e07ffbd57b4;p=project%2Fluci.git luci-lua-runtime: fix loading header/footer templates for SimpleForms Fixes: #6054 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua index 7859ba17a3..e009147f05 100644 --- a/modules/luci-lua-runtime/luasrc/dispatcher.lua +++ b/modules/luci-lua-runtime/luasrc/dispatcher.lua @@ -346,11 +346,11 @@ function invoke_form_action(model, ...) end http:header("X-CBI-State", state or 0) - tpl.render("header") + _G.L.include("header") for i, res in ipairs(maps) do res:render() end - tpl.render("footer") + _G.L.include("footer") end